<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/media/js/jquery.dataTables.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/extras/TableTools/media/js/ZeroClipboard.js" type="text/javascript"></script>
<script src="<?php echo base_url() ?>commons/tablas/extras/TableTools/media/js/TableTools.js" type="text/javascript"></script>

<style type="text/css" title="currentStyle">
			@import "<?php echo base_url() ?>commons/tablas/media/css/demo_page.css";
			@import "<?php echo base_url() ?>commons/tablas/media/css/demo_table.css";
                        @import "<?php echo base_url() ?>commons/tablas/extras/TableTools/media/css/TableTools.css";
		</style>
<script type="text/javascript">
  var t=jQuery.noConflict();
			t(document).ready(function() {
				t('#example').dataTable( {
					"sPaginationType": "full_numbers"
				} );
			} );
                    
</script>


<form class="well form-horizontal span8" action="<?php echo base_url() . "admin.php/cambiarnromat/cambiarnro" ?>" method="post" onsubmit="return confirma('Desea Cambiar la numeracion?')">
    <legend>REPORTES DE MATRICULADOS POR CARRERA</legend>
    <div class="control-group">
        <label class="control-label" for="select03">CARRERA: <?php echo (!empty($reporte)?$reporte[0]['nombre_car']:"SIN DATOS");?></label>
        <label class="control-label" for="select03">CICLO  : <?php echo (!empty($reporte)?$reporte[0]['nombre_cic']:"SIN DATOS");?></label>
        <label class="control-label" for="select03">SECCION:<?php echo $nom_seccion;?></label>
        
    </div>  
    
    <div id="tablamatriculai" >
        <table id="example" class="table table-bordered table-striped table-condensed">
            
            <thead>
                <tr>
                    <th>SEL</th>
                    <th>Nro</th>
                    <th>CEDULA</th>
                    <th>APELLIDOS</th>
                    <th>NOMBRES</th>
                    <th>PAR</th>
                    <th>MATAC</th>
                    <th>MATASIG</th>
                </tr>
            </thead>
            <tbody>
                <?php
                $fila=1;
                $s_h=0;
                $s_m=0;
                
                if (!empty($reporte)) {
                    foreach ($reporte as $i => $repor) {
                        ?>
                        <tr>
                            <td><input type="checkbox" <?php echo "name='ide_mat" . $fila . "' value='" . $repor['id_matr'] . "'"; ?> /></td>
                            
                            <td ><?php echo $fila; ?>
                                </td>
                            <td><?php echo $repor['cedula_pers'] ?></td>
                            <td><?php echo $repor['apellido_pers'] ?></td>
                            <td><?php echo $repor['nombre_pers'] ?></td>
                            <td><?php echo $repor['paralelo']; ?></td>
                            <td>
                                <input type="text" class="input-medium span1"  name="nro" value="<?php echo $repor['nro_matr']; ?>" disabled>
                            </td>
                            <td>
                                <input type="text" class="input-medium span1" <?php echo "name='nro_matr" . $fila . "'"; ?> value="0" >
                            </td>
                        </tr>
                        <?php
                        $fila+=1;
                    }
                }
                ?>
            </tbody>
        </table>  
    </div>

        <input type="hidden" name="fila" value="<?php echo $fila; ?>">
        <input type="hidden" name="ide_lec" value="<?php echo $ide_lec; ?>">

        <div class="controls">
                <button type="submit" class="btn">Cambiar Numeracion</button>

        </div> 


</form>

